home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Found / FWExcLib / Include / FWPriExc.h < prev    next >
Encoding:
Text File  |  1994-04-21  |  1.6 KB  |  60 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWPriExc.h
  4. //    Release Version:    $ 1.0d1 $
  5. //
  6. //    Creation Date:        3/28/94
  7. //
  8. //    Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef FWPRIEXC_H
  13. #define FWPRIEXC_H
  14.  
  15. #ifndef   FWEXCEPT_H
  16. #include "FWExcept.h"
  17. #endif
  18.  
  19.  
  20. enum FW_PlatformErrorAvailability
  21. {
  22.     kPlatformErrorNotAvailable, kPlatformErrorAvailable
  23. };
  24.  
  25. typedef unsigned long PlatformError;
  26.  
  27. //========================================================================================
  28. //    CLASS FW_XPrivException
  29. //========================================================================================
  30.  
  31. class FW_XPrivException : public _FW_CException
  32. {
  33. public:
  34.     FW_PlatformErrorAvailability GetPlatformErrorAvailability() const;
  35.     PlatformError GetPlatformError() const;
  36.  
  37.     _FW_EXCEPTION_DEFINE(FW_XPrivException)
  38. protected:
  39.     FW_XPrivException();
  40.     FW_XPrivException(const FW_XPrivException& exception);
  41.     FW_XPrivException(PlatformError theError);
  42.  
  43.     virtual~ FW_XPrivException();
  44.  
  45. private:
  46.     const FW_PlatformErrorAvailability fPlatformErrorAvailability;
  47.     const PlatformError fPlatformError;
  48. };
  49.  
  50. //----------------------------------------------------------------------------------------
  51. // FW_XPrivException::GetPlatformErrorAvailability
  52. //----------------------------------------------------------------------------------------
  53.  
  54. inline FW_PlatformErrorAvailability FW_XPrivException::GetPlatformErrorAvailability() const
  55. {
  56.     return fPlatformErrorAvailability;
  57. }
  58.  
  59. #endif
  60.